<%@ Page Language="C#" %>
<%@ Import Namespace="wojilu" %>
<%@ Import Namespace="wojilu.View" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Domain" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Service" %>

<script type="text/javascript">
$().ready(function() {
	$(".bottonmenu li span").hover(function() {
		$(this).parent().find("ul.subnavlist").slideDown('fast').show();
		$(this).parent().hover(function() {}, function(){
			$(this).parent().find("ul.subnavlist").fadeOut('fast');
		});
	});
});
</script>
<div id="headbg">
	<div id="head">
		<div class="logo"><div id="logo"></div></div>
		<div id="botton">
			<ul class="bottonmenu">
				<li id="topleftbg"></li>
				<li id="bottonbg" style="width:60px;"><a class="annex" hidefocus="true" href="#{index}">管理主页</a></li>
				<li id="bottonbg" style="width:60px;"><a class="annex" hidefocus="true" href="#body" onclick="windowsdig('_{adminuser_top_password_edit}','iframe:PassWord.aspx?iframename=','650px','340px','iframe');">_{adminuser_top_password_edit}</a></li>
				<li id="bottonbg" style="width:90px;"><a class="annex" hidefocus="true" href="#{index}?loadfun=loglist&menuname_title=%E6%88%91%E7%9A%84%E7%B3%BB%E7%BB%9F%E6%97%A5%E5%BF%97&menuid=8">_{adminuser_top_myloglist}</a></li>
				<li id="bottonbg" style="width:60px;"><a class="annex" hidefocus="true" href="#body" onclick="windowsdig('_{adminuser_top_clearcache}','iframe:ClearCache.aspx?iframename=','650px','250px','iframe');">_{adminuser_top_clearcache}</a></li>
                <%PowerGroup modelpowergroup = v.data("powergroup") as PowerGroup; %>
                <%var bllPowerGroupService = new PowerGroupService(); %>
                <%if (bllPowerGroupService.powercheck("system", "filecheck", modelpowergroup))
                  { %>
				<li id="bottonbg" style="width:90px;"><a class="annex" hidefocus="true" href="#body" onclick="windowsdig('_{adminuser_top_filecheck}','iframe:FileCheck.aspx?iframename=','650px','450px','iframe');">_{adminuser_top_filecheck}</a></li>
                <%} %>
                <%if (bllPowerGroupService.powercheck("system", "clearlog", modelpowergroup))
                  { %>
				<li id="bottonbg" style="width:60px;"><a class="annex" hidefocus="true" href="#body" onclick="windowsdig('_{adminuser_top_clearlog}','iframe:ClearLog.aspx?iframename=','650px','340px','iframe');">_{adminuser_top_clearlog}</a></li>
				<%} %>
				<li id="bottonbg" style="width:120px;">
					<span>网站漏洞安全扫描</span>
					<ul class="subnavlist">
						<li><a target="_blank" hidefocus="true" href="http://webscan.360.cn/index/checkwebsite/?url=#{softhttp}">360网站安全扫描</a></li>
						<li><a target="_blank" hidefocus="true" href="http://www.scanv.com/physical/report/?domain=#{softhttp}">SCANV安全扫描</a></li>
					</ul>
				</li>
				<li id="bottonbg" style="width:60px;"><a class="annex" target="_blank" hidefocus="true" href="#{adminurl}">网站预览</a></li>
				<li id="bottonbg" style="width:40px;"><a class="annex" hidefocus="true" href="#{logout}">退出</a></li>
				<li id="rightbg"></li>
			</ul>
		</div>
	</div>
	<div class="menubotton">
		<ul class="topnav" id="clickmenubotton">
            <%
                var menulist = Menulink.find("topmlid=:t and isshow=1 order by pid asc, id desc").set("t", 0).list();
                %>
            <%foreach(Menulink row in menulist) {%>
	<li><span <%if (row.Id == Convert.ToInt32(v.data("menuid"))){%> class="bgmenuhove"<%} %>><%=row.menuname %></span>
		<ul class="subnav">
            <%var menuclist = Menulink.find("topmlid=:t and isshow=1 order by pid asc").set("t", row.Id).list(); %>
            <%foreach(Menulink row1 in menuclist) {%>
            <%if (row1.loadfun == v.data("loadfun").ToString() && row1.topmlid == Convert.ToInt32(v.data("menuid"))){ %>
			<li><a class="hover" title="<%=row1.menuname %>"><%=row1.menuname %></a></li>
            <%}else{%>
			<li><a title="<%=row1.menuname %>" href="#{index}<%=row1.linkurl + "&menuname_title=" + System.Web.HttpUtility.UrlEncode(row1.menuname) + "&menuid=" + row1.topmlid %>"><%=row1.menuname %></a></li>
			<%} %>
            <%} %>
		</ul>
	</li>
    <%} %>
            <li><span class="yallow">语言</span>
                <%
                    var lnglist = Lng.find("isuptype=:i and isopen=:n order by pid asc").set("i", 0).set("n", 1).list();
                %>
                <ul class="subnav">
                    <% foreach (Lng x in lnglist)
                       { %>
                    <%if (x.lng == v.data("lngs").ToString())
                      {%>
                    <li><a class="hover" title="<%=x.lngtitle %>"><%=x.lngtitle %></a></li>
                    <%}
                      else
                      { %>
                    <li><a href="#{LanguageChange}?lng=<%=x.lng %>" title="<%=x.lngtitle %>"><%=x.lngtitle %></a></li>
                    <%} %>
                    <%} %>
                </ul>
            </li>
        </ul>
	</div>
	<div class="menuline"></div>
	<div class="menuline2"></div>
</div>